package com.chenyun.rpc.dubbo.satoken.model;

import cn.dev33.satoken.context.model.SaResponse;
import org.apache.dubbo.rpc.RpcContext;

import java.io.Serializable;


/**
 * 移植 sa-token-dubbo3 中的代码到此处
 * @author: Lonni
 * @date: 2024/1/22 0022 16:35
 */
public class SaResponseForDubbo3 implements SaResponse {
    protected RpcContext rpcContext;

    public SaResponseForDubbo3(RpcContext rpcContext) {
        this.rpcContext = rpcContext;
    }

    public Object getSource() {
        return this.rpcContext;
    }

    public SaResponse setStatus(int sc) {
        return this;
    }

    public SaResponse setHeader(String name, String value) {
        return this;
    }

    public SaResponse addHeader(String name, String value) {
        return this;
    }

    public Object redirect(String url) {
        return null;
    }
}



